export function deepCopy(obj) {
  let newObj = obj;
  if (obj && typeof obj === 'object') {
    newObj = Object.prototype.toString.call(obj) === '[object Array]' ? [] : {};
    for (const i of Object.keys(obj)) {
      newObj[i] = deepCopy(obj[i]);
    }
  }
  return newObj;
}
